﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <link type="text/css" href="__PUBLIC__/css/jquery-ui-1.8.16.custom.css" rel="stylesheet"/>
    <link href="__PUBLIC__/images/class.css" rel="stylesheet" type="text/css"/>

    <style type="text/css">
        table {
            padding: 0px;
            margin: 0px;
        }

        th, tr, td {
            text-align: center;
            line-height: 28px;
            height: 28px;
        }

        th {
            background-image: url(__PUBLIC__/images/th_bg.jpg);
            background-color: #06C;
        }

        table {
            border-collapse: collapse;
        }

        th, td {
            vertical-align: middle;
            border: 1px dotted #DDD;
            border-collapse: collapse;
        }

        table td span {
            color: #999999;
        }

        td {
            cursor: pointer;
        }

        .formTextarea {
            background: url(__PUBLIC__/images/textareaBg.png) no-repeat;
            border: 1px #B9C8E7 solid;
            font-size: 12px;
            line-height: 150%;
            color: #333;
            padding: 5px;
        }
    </style>
    <script src="__PUBLIC__/libs/js/jquery.js" type="text/javascript"></script>

    <script type="text/javascript">
        /* $(document).ready(function(){
         $(".data_list tr").dblclick(function() {
         var id=$(this).attr('id');
         top.Dialog.open({URL:"__ROOT__/index.php/Payments/editshow/id/"+id,Title:"财务记录修改编辑"});
         });
         })
         */

        /* 当鼠标移到表格上是，当前一行背景变色 */
        $(document).ready(function () {
            $(".data_list tr td").mouseover(function () {
                $(this).parent().find("td").css("background-color", "#D6EDFF");
            });
        })
        /* 当鼠标在表格上移动时，离开的那一行背景恢复 */
        $(document).ready(function () {
            $(".data_list tr td").mouseout(function () {
                var bgc = $(this).parent().attr("bg");
                $(this).parent().find("td").css("background-color", bgc);
            });
        })

        $(document).ready(function () {
            var color = "#F8F8F8"
            $(".data_list tr:odd td").css("background-color", color);  //改变偶数行背景色
            /* 把背景色保存到属性中 */
            $(".data_list tr:odd").attr("bg", color);
            $(".data_list tr:even").attr("bg", "#fff");
        })
    </script>

</head>

<body>
<DIV class="infoBox">
<table class="tableStyle">
<tr><td>
    <form id="form1" onSubmit="return check(this)" name="form1" method="post"
          action="__APP__/Custom/editsave/id/{$customid}">
        <TABLE width="100%" border=0 align="left" cellPadding=0 cellSpacing=0>
            <TBODY>
            <td colspan="3" align="center" class="pages" bgcolor="#FFFFFF">
                <div class="pages">
                    <h2>客户业务备注填写</h2></div>
            </td>
            </tr>
            <TR>
                <TD class=infoBoxTd width=68>客户备注：</TD>
                <TD width="446"><textarea name="content" rows="2" cols="20" id="content" class="formTextarea"
                                          style="height:100px;width:700px;"></textarea></TD>
            </TR>
            <TR>
                <TD class=infoBoxTd>&nbsp;</TD>
                <TD>
                    <input class="buttons" type="submit" value="保存数据"/></TD>
            </TR>
            </TBODY>
        </TABLE>
    </FORM>
</td></tr>
<tr><td>
    <table width="100%" class="data_list">
        <tr>
            <th width="60px">备注人</th>
            <th width="120px">备注时间</th>
            <th>客户备注</th>
            <th>操作</th>
        </tr>
        <volist name="accounts_list" id="vo">
            <tr>
                <td>{$vo['adduser']}</td>
                <td>{$vo['lxtime']}</td>
                <td align="left">{$vo['content']}</td>
                <td><a href="{:U('remarks/delete',array('id'=>$vo['id']))}">删除</a></td>
            </tr>
        </volist>
        <tr>
            <td colspan="4" align="center" bgcolor="#FFFFFF">
                <div class="fenye"> {$page_method}</div>
            </td>
        </tr>
    </table>

</td></tr>
</table>
</DIV>
</body>
</html>
